class User < ActiveRecord::Base
    def self.authenticate(login_id, password)
      user = self.find_by_login_id(login_id)
      if user
        if user.password != password
           user = nil
        end
      end
      user
    end

end
